package com.lgd.warehousemanagement.Utils;

/**
 * @Author lgd
 * @Date 2024/4/16 16:21
 *   防止 用户双击 按钮 工具类
 */
public class NoDoubleClickUtil {
    private static long lastClickTime;
    public static boolean isFastDoubleClick() {
        long time = System.currentTimeMillis();
        if ( time - lastClickTime < 2000) {
            return true;
        }
        lastClickTime = time;
        return false;
    }
}
